﻿
using System;
using System.Linq;

    class AreaOfTrapezoid
    {
        static void Main(string[] args)
        {
            int a = 2;
            int b = 4;
            int h = 6;

            int area = ((a + b) / 2) * h;
            Console.WriteLine("The area of the trapezoid is: {0} ", area);
        }
    }

